package es.us.lsi.daw.dao.repository;

import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.mongodb.repository.Query;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import es.us.lsi.daw.model.TwitterUser;

@Transactional
@Repository
public interface ITwitterUserRepository extends  MongoRepository<TwitterUser, String>  {
	
	@Query("{id_twitter : ?0}")
	public TwitterUser findByTwitterId(Long idTwitter);

}
